#include <iostream>
#include <thread>
#include <chrono>

using namespace std;

void hello()
{
    this_thread::sleep_for(chrono::seconds(5));
    std::cout << "Hello Concurrent World!\n";
    cout << "bye in " << this_thread::get_id() << endl;
}

int main()
{
    cout << "Hello World!" << endl;
    thread t(hello);
    t.join();
    cout << "bye in " << this_thread::get_id() << endl;
    return 0;
}
